export function mymap(ak) {
	// console.log("resolve::"+resolve)
	// console.log("reject::"+reject)

	return new Promise(function(resolve, reject) {
		window.init = function() {
			resolve(mymap)
		}
		var script = document.createElement('script')
		script.type = 'text/javascript'
		script.src =
			`http://api.map.baidu.com/reverse_geocoding/v3/?ak=${ak}&output=json&coordtype=wgs84ll&location=31.225696,121.49884`
		script.onerror = reject
		document.head.appendChild(script)
	})
}

